package com.tangcco.lockwell.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * author:宋作振
 */
public class User implements Serializable {

    private static final long serialVersionUID = -7797183521247423117L;
    //用户id
    private Integer userId;

    private String userUuid;

    /**
     * 用户名
     */
    private String userName;

    private String password;

    /**
     * 真实姓名
     */
    private String realName;

    private Integer age;

    /**
     * 1.男 2女
     */
    private Integer sex;
    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
    private Date birthDay;

    /**
     * 学生年级(1-12)
     */
    private Integer userLevel;

    private String phone;

    /**
     * 1.学生  3.管理员
     */
    private Integer role;

    /**
     * 1.启用 2禁用
     */
    private Integer status;

    /**
     * 头像地址
     */
    private String imagePath;

    private String createTime;

    private String modifyTime;

    private String lastActiveTime;

    /**
     * 是否删除
     */
    private int deleted;

    /**
     * 微信openId
     */
    private String wxOpenId;

    //积分
    private Integer integral;
    //专业方向外键链接数据字典
    private Integer professionalDirection;
    //目标院校
    private String targetUniversity;
    //目标专业
    private String targetMajor;

    //是否允许老师监督学习（0-不允许，1允许）
    private  Integer supervision;

    private String token;

    public String getOptSubject() {
        return optSubject;
    }

    public void setOptSubject(String optSubject) {
        this.optSubject = optSubject;
    }

    //选择（购买）学科
    private String optSubject;

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserUuid() {
        return userUuid;
    }

    public void setUserUuid(String userUuid) {
        this.userUuid = userUuid;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Date getBirthDay() {
        return birthDay;
    }

    public void setBirthDay(Date birthDay) {
        this.birthDay = birthDay;
    }

    public Integer getUserLevel() {
        return userLevel;
    }

    public void setUserLevel(Integer userLevel) {
        this.userLevel = userLevel;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getImagePath() {
        return imagePath;
    }

    public void setImagePath(String imagePath) {
        this.imagePath = imagePath;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getLastActiveTime() {
        return lastActiveTime;
    }

    public void setLastActiveTime(String lastActiveTime) {
        this.lastActiveTime = lastActiveTime;
    }

    public void setDeleted(int deleted) {
        this.deleted = deleted;
    }

    public int getDeleted() {
        return deleted;
    }

    public String getWxOpenId() {
        return wxOpenId;
    }

    public void setWxOpenId(String wxOpenId) {
        this.wxOpenId = wxOpenId;
    }

    public Integer getIntegral() {
        return integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }

    public Integer getProfessionalDirection() {
        return professionalDirection;
    }

    public void setProfessionalDirection(Integer professionalDirection) {
        this.professionalDirection = professionalDirection;
    }

    public String getTargetUniversity() {
        return targetUniversity;
    }

    public void setTargetUniversity(String targetUniversity) {
        this.targetUniversity = targetUniversity;
    }

    public String getTargetMajor() {
        return targetMajor;
    }

    public void setTargetMajor(String targetMajor) {
        this.targetMajor = targetMajor;
    }

    public Integer getSupervision() {
        return supervision;
    }

    public void setSupervision(Integer supervision) {
        this.supervision = supervision;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userUuid='" + userUuid + '\'' +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", realName='" + realName + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                ", birthDay=" + birthDay +
                ", userLevel=" + userLevel +
                ", phone='" + phone + '\'' +
                ", role=" + role +
                ", status=" + status +
                ", imagePath='" + imagePath + '\'' +
                ", createTime='" + createTime + '\'' +
                ", modifyTime='" + modifyTime + '\'' +
                ", lastActiveTime='" + lastActiveTime + '\'' +
                ", deleted=" + deleted +
                ", wxOpenId='" + wxOpenId + '\'' +
                ", integral=" + integral +
                ", professionalDirection=" + professionalDirection +
                ", targetUniversity='" + targetUniversity + '\'' +
                ", targetMajor='" + targetMajor + '\'' +
                ", supervision=" + supervision +
                ", optSubject='" + optSubject + '\'' +
                '}';
    }
}
